package com.xszx.service.impl;

import com.xszx.bean.LoginUser;
import com.xszx.bean.UserVocate;
import com.xszx.bean.WorkTime;
import com.xszx.dao.SuperDao;
import com.xszx.service.SuperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MarFloral
 * @date 2022/12/9 13:54
 */
@Service
public class SuperServiceImpl implements SuperService {
    @Autowired
    SuperDao superDao;

    @Override
    public int selectVacateCount() {
        return superDao.selectVacateCount();
    }

    @Override
    public List<UserVocate> selectSuperVacate(Map<String, Object> map) {
        return superDao.selectSuperVacate(map);
    }

    @Override
    public int agreeVacate(UserVocate userVacate) {
        return superDao.agreeVacate(userVacate);
    }

    @Override
    public List<LoginUser> selectAllLoginUser() {
        return superDao.selectAllLoginUser();
    }

    @Override
    public int delALoginUser(int id) {
        return superDao.delALoginUser(id);
    }

    @Override
    public int editALoginUser(LoginUser user) {
        return superDao.editALoginUser(user);
    }

    @Override
    public int addALoginUser(LoginUser user) {
        return superDao.addALoginUser(user);
    }

    @Override
    public int updateWorkTime(WorkTime workTime) {
        return superDao.updateWorkTime(workTime);
    }

    @Override
    public WorkTime selectWorkTime() {
        return superDao.selectWorkTime();
    }
}
